package com.hqyj.demo.entity;

import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * id	int	主键id
 * 主键id
 * amount_paid	float	实付金额
 * amount_payable	float	应付金额
 * remarks	varchar	备注
 * sale_date	datetime	销售日期
 * sale_number	varchar	销售单据编号
 * state	int	状态（1、已付款/2、未付款）
 * user_id	int	操作员id
 * customer_id	int	客户id
 */

@Data
public class Sale implements Serializable {

    //主键id
    private Integer id;

    //实付金额
    private Float amountPaid;

    //应付金额
    private Float amountPayable;

    //入库日期
    private LocalDateTime saleDate;

    //备注
    private String remarks;

    //单据状态
    private Byte state;

    //单据编号
    private String saleNumber;

    //客户id
    private Integer customerId;
    //客户对象
    private Customer customer;

    //操作人员id
    private Integer userId;
    //操作人对象
    private Admin admin;

    //单据中商品信息
    private List<SaleGoods> saleGoodsLIst;



    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Float getAmountPaid() {
        return amountPaid;
    }

    public void setAmountPaid(Float amountPaid) {
        this.amountPaid = amountPaid;
    }

    public Float getAmountPayable() {
        return amountPayable;
    }

    public void setAmountPayable(Float amountPayable) {
        this.amountPayable = amountPayable;
    }

    public LocalDateTime getSaleDate() {
        return saleDate;
    }

    public void setSaleDate(LocalDateTime saleDate) {
        this.saleDate = saleDate;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public Byte getState() {
        return state;
    }

    public void setState(Byte state) {
        this.state = state;
    }

    public String getSaleNumber() {
        return saleNumber;
    }

    public void setSaleNumber(String saleNumber) {
        this.saleNumber = saleNumber;
    }

    public Integer getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Integer customerId) {
        this.customerId = customerId;
    }

    public Customer getCustomer() {
        return customer;
    }

    public void setCustomer(Customer customer) {
        this.customer = customer;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Admin getAdmin() {
        return admin;
    }

    public void setAdmin(Admin admin) {
        this.admin = admin;
    }

    public List<SaleGoods> getSaleGoodsLIst() {
        return saleGoodsLIst;
    }

    public void setSaleGoodsLIst(List<SaleGoods> saleGoodsLIst) {
        this.saleGoodsLIst = saleGoodsLIst;
    }
}
